package com.swt.testdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swt.testdemo.dao.SysDataLawLabelDao;
import com.swt.testdemo.entity.SysDataLawLabelEntity;
import com.swt.testdemo.service.SysDataLawLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/16 17:17
 **/
@Service("SysDataLawLabelService")
public class SysDataLawLabelServiceImpl  extends ServiceImpl<SysDataLawLabelDao, SysDataLawLabelEntity> implements SysDataLawLabelService {


    @Autowired
    private SysDataLawLabelDao sysDataLawLabelDao;


    @Override
    public List<SysDataLawLabelEntity> getAllLabel() {
        List<SysDataLawLabelEntity> allLabels = this.list();

        return allLabels;
    }

    @Override
    public SysDataLawLabelEntity getLawLabelByName(String lawLabelName) {

        SysDataLawLabelEntity sysDataLawLabelEntity = sysDataLawLabelDao.getLawLabelByName(lawLabelName);


        return sysDataLawLabelEntity;
    }
}
